<div>
    <table class="form">
    	<tr>
    		<th><%= h title%></th>
			<th>团数</th>
			<th>人数</th>
    		</tr>
        <% for obj in klass.to_s.classify.constantize.tour_group_count() %>
        <tr>
            <td>
                <%= link_to obj.name, "/#{klass.to_s}/#{obj.id}", :title => "查看“#{obj.name}”团队收支表一览" %>
            </td>
            <td>
                <%= obj.tour_group_count.nil? ? 0 : obj.tour_group_count %>
            </td>
			<td>
				<%= obj.people_count.nil? ? 0 : obj.people_count %><%= ".#{obj.children_count}" if !obj.children_count.nil? && obj.children_count.to_i  > 0 %>
			</td>
        </tr>
        <% end %>
    </table>
</div>
